#include "zlog_app.h"

zlog_app::zlog_app()
{
    // 初始化 zlog
    if (zlog_init("./conf/zlog.conf"))
    {
        printf("zlog init failed\n");
    }
    zlog_all = zlog_get_category(ZLOG_CAG_ALL);
    zlog_up = zlog_get_category(ZLOG_CAG_UP_TY);
    zlog_down = zlog_get_category(ZLOG_CAG_MQTT);
    zlog_exp = zlog_get_category(ZLOG_CAG_EXP);
    init_flag = true;
    printf("zlog init success\n");
    zlog_info(zlog_all, "zlog init success");
    zlog_info(zlog_up, "zlog init success");
    zlog_info(zlog_down, "zlog init success");
    zlog_info(zlog_exp, "zlog init success");
}
zlog_app::~zlog_app()
{
}